package com.whpu.mall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.whpu.common.utils.PageUtils;
import com.whpu.mall.product.entity.AttrGroupEntity;
import com.whpu.mall.product.vo.AttrGroupWithAttrsVo;

import java.util.List;
import java.util.Map;

/**
 * 属性分组
 *
 * @author FanboKai
 * @email fanbokai163@163.com
 * @date 2020-11-19 22:55:24
 */
public interface AttrGroupService extends IService<AttrGroupEntity> {

    PageUtils queryPage(Map<String, Object> params);

    //根据id和查询条件分页
    PageUtils queryPage(Map<String, Object> params, Long catelogId);

    //根据分类id获取分类下所有分组以及这些组关联属性
    List<AttrGroupWithAttrsVo> getAttrGroupWithAttrs(Long catelogId);
}

